package com.jn.retrofit.service;

import com.jn.retrofit.entity.QAndAEntity;

import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

public interface QAndAService {
    @GET("api/za/shenhuifu.php")
    Call<ResponseBody> getData(@Query("type") String type);

    @GET("api/za/shenhuifu.php")
    Call<QAndAEntity> getData2(@Query("type") String type);

    @GET("api/za/shenhuifu.php")
    Call<QAndAEntity> getData3(@QueryMap Map<String, Object> map);

    @GET("api/za/shenhuifu.php/{type}")
    Call<QAndAEntity> getData4(@Path("type") String type);
}
